From 6d4a6646752de9351f95a8f690b6bb79438a6337 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 28 Jun 2012 18:43:26 +0100 Subject: [PATCH] xl: Handle return value from libxl_domain_suspend correctly libxl_domain_suspend returns a libxl error code. So it must be wrapped with MUST and not CHK_ERRNO. Signed-off-by: Ian Jackson Acked-by: Ian Campbell Committed-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index bcdef00e02..1029e6c2c8 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -2826,7 +2826,7 @@ static int save_domain(const char *p, const char *filename, int checkpoint, save_domain_core_writeconfig(fd, filename, config_data, config_len); - CHK_ERRNO(libxl_domain_suspend(ctx, domid, fd, 0, NULL)); + MUST(libxl_domain_suspend(ctx, domid, fd, 0, NULL)); close(fd); if (checkpoint) -- 2.30.2